#include<stdio.h>
int main()
{
	int second, h, m,t;
	scanf_s("%d", &second);
	h = second/3600;
	m = (second- h * 3600) /60;
	t = (second - h * 3600 - m * 60);
	printf("%d:%d:%d\n", h, m, t);
	return 0;
}